class MainStage extends egret.gui.SkinnableComponent{

    public constructor(){
        super();
        this.skinName = scene.MainStageSkin;
        this.visible=false;
    }
    public __peopleCon:egret.gui.SkinnableComponent;
    public __timeMc:egret.gui.ProgressBar;
    public __scoreTf:egret.gui.Label;
    public getCenterPostion():egret.Point{
        return new egret.Point(this.__peopleCon.x,this.__peopleCon.y);
    }
    public showTime(current:number,total:number):void {
        if(this.__timeMc)
        {
            this.__timeMc.maximum = total;
            this.__timeMc.value = current;
        }
    }
    public setScore(s:number):void{
        this.__scoreTf.text=s.toString();
    }
}

